#ifndef _RESULT_SAVER_H
#define _RESULT_SAVER_H

#include <Windows.h>
#include <fstream>
#include <string>
#include <wmi_reader.h>
#include <CM_ResultCollection.h>
#include <adcm_computer.h>

class ResultSaver
{
public:	
	ResultSaver();
	void saveData(ADCM_Computer& computer, CM_ResultCollection& res);

	void saveShares(WMI_Result<WMI_Share>& shares);
	void saveProcess(WMI_Result<WMI_Process>& process);	
	void saveRegistries(WMI_Result<WMI_Registry>& registries);

	void saveRegistry(WMI_Registry& registry);
	void saveShare(WMI_Share& share);
	void saveProcess(WMI_Process& process);

	void getCurrentTime(string& time);

private:
	string filename;
	ofstream outFile;
};

#endif